Skip to content

Conversation

@PowerKiKi
Copy link
Contributor

@PowerKiKi PowerKiKi commented Nov 28, 2025

You can restore outline appearance by providing MAT_PAGINATOR_DEFAULT_OPTIONS like so:

{
    provide: MAT_PAGINATOR_DEFAULT_OPTIONS,
    useValue: {
        formFieldAppearance: 'outline',
    } satisfies MatPaginatorDefaultOptions,
}

Fixes #26580

BREAKING CHANGE:

  • Paginator default appearance is fill.

… `<mat-form-field>`

You can restore `outline` appearance by providing `MAT_PAGINATOR_DEFAULT_OPTIONS` like so:

```ts
{
    provide: MAT_PAGINATOR_DEFAULT_OPTIONS,
    useValue: {
        formFieldAppearance: 'outline',
    } satisfies MatPaginatorDefaultOptions,
}
```

Fixes angular#26580

BREAKING CHANGE:
* Paginator default appearance is `fill`.
@PowerKiKi PowerKiKi requested a review from a team as a code owner November 28, 2025 01:28
@PowerKiKi PowerKiKi requested review from adolgachev and ok7sai and removed request for a team November 28, 2025 01:28
@angular-robot angular-robot bot added detected: breaking change PR contains a commit with a breaking change area: material/paginator labels Nov 28, 2025
@PowerKiKi PowerKiKi changed the title fix(material/paginator): Paginator default appearance is fill, like… fix(material/paginator): Paginator default appearance is fill, like <mat-form-field> Nov 28, 2025
@crisbeto
Copy link
Member

The outline appearance was chosen intentionally, I believe because it fits better than fill in the paginator. Also this is a breaking change that's not worth the churn, considering that there's an easy workaround using a public API.

@crisbeto crisbeto closed this Nov 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: material/paginator detected: breaking change PR contains a commit with a breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(paginator-mdc): Paginator form field appearance does not honor MAT_FORM_FIELD_DEFAULT_OPTIONS

2 participants